<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="model.Aluno"%>
<%@page import="dao.AlunoDao"%>
<!DOCTYPE html>
<html>
    <head>
        <script type="text/javascript" src="javascript/menu.js"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="css/menu-1.css"/>
        <title>.:: SISDACE ::.</title>
    </head>
    <body>
        <form name="formAlterar" action="ControllerAlterar" method="POST">
        <%
            AlunoDao alunoDao = new AlunoDao();
            Aluno aluno = alunoDao.consultarPorId(Integer.valueOf(request.getParameter("codigo")));
        %>  
        <table border="1" style="background-color:skyblue; margin-left:80px;">
            <thead>
                <tr>
                    <th colspan="2" style="width:900px;">SISDACE - SISTEMA DE DEMANDA DE ALUNOS PARA CURSOS DE EXTENSÃO</th>
                </tr>
                <tr>
                    <td colspan="2">
                    <div id="sse50">
                        <div id="sses50">
                      <ul>
                         <li><a href="index.htm" >Home</a></li>
                         <li><a href="CadastrarAluno.htm" >Cadastrar Aluno</a></li>
                         <li><a href="ListarAluno.htm">Listar Alunos</a></li>
                         <li><a href="ConsultarAluno.htm">Consultar Aluno</a></li>
                         <li><a href="ConsultarAluno.htm">Listar Maior Renda</a></li>
                         <li><a href="ConsultarAluno.htm">Listar Preferência de Curso</a></li>
                         <li><a class="end">&nbsp;</a></li>
                      </ul>    
                      </div>
                     </div>
                     </td>            
                </tr>
            </thead>
            <tbody>
               <tr>
                <td style="height:400px;">
              <table border="1" style="width: 900px; height:50px;">
               <thead style="text-align:center;">
                <tr>
                    <th>Código:</th>
                    <th>Aluno:</th>
                    <th>Curso:</th>
                    <th>Período:</th>
                    <th>Telefone:</th>
                    <th>Estado Civil:</th>
                    <th>Idade:</th>
                 
                </tr>
            </thead>
            <tbody style="text-align:top;">
                  <tr>
                   <td><input type="hidden" name="txtid" value="<%= aluno.getAlunid() %>"/></td>
                   <td><input type="text" name="txtnome" value="<%= aluno.getAlunome() %>" /></td>
                   <td><input type="text" name="txtcurso" value="<%= aluno.getAluncurso() %>" /></td>
                   <td><input type="text" name="txtperiodo" value="<%= aluno.getAlunperiodo()%>" /></td>
                   <td><input type="text" name="txttelefone" value="<%= aluno.getAluntelefone() %>" /></td>
                   <td><input type="text" name="txtestadocivil" value="<%= aluno.getAlunestadocivil() %>" /></td>
                   <td><input type="text" name="txtidade" value="<%= aluno.getAlunidade() %>" /></td>
                </tr>
                <tr>
                    <td>
                        <input type="submit" name="btSalvar" value="Salvar">
                    </td>
                    <td style="text-align:center;"><input type="button" value="Voltar" name="btVoltar" onclick="location='ListarAluno.htm'"></td>
                  </tr>   
            </tbody>
        </table>  
                        
                    </td>
                </tr>
  
            </tbody>
        </table>
       </form>
    </body>
</html>




